package com.lebang.mapper;

import com.lebang.domain.MemberInviteRebateRecord;
import com.lebang.example.MemberInviteRebateRecordExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;

/**
 * MemberInviteRebateRecordMapper继承基类
 */
@Mapper
public interface MemberInviteRebateRecordMapper extends MyBatisBaseDao<MemberInviteRebateRecord, Integer, MemberInviteRebateRecordExample> {
    Integer selectTotalByTd(String memberId);

    Integer selectTotalByTs(String memberId);

    int getTotalMoney(@Param("tdId") String tdId, @Param("memberId")String memberId);

    Integer selectByType(@Param("memberId") String memberId,@Param("type") int type,@Param("min") LocalDateTime min,@Param("max") LocalDateTime max);
}